<%@ page contentType="text/html;charset=utf-8"%>
<%request.setCharacterEncoding("utf-8"); %>
<%@include file="../common/IncludeTop.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<head>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/default/easyui.css">
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
		<!-- 最新 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css">
		<!-- 可选的Bootstrap主题文件（一般不用引入） -->
	<link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap-theme.min.css">
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>		
		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
</head>
<body>
	<div class="container" style="margin-top:60">
		<div class="row">
			<div class="col-md-9" role="main">
				  <b><font size="6">${product.name}</font></b>
				 <div style="margin-top:10px">
				 	<img src="${product.descn}" alt="..." class="img-thumbnail" style="width:100%">
				 </div>				  
				 <div class="panel panel-default" style="margin-top:40;margin-bottom:0;">
            		<div class="panel-heading">
             			<h2 class="panel-title">简介</h2>
            		</div>
           			<div class="panel-body" style="font-size:20">
              			${product.comment}
            		</div>
          		</div>
          		<div class="panel panel-success" style="margin-bottom:0;">
            		<div class="panel-heading">
             			<h2 class="panel-title">材料</h2>
            		</div>
           			<div class="panel-body" style="font-size:20">
           			<table class="table table-striped">
							 <thead>
							 	<tr>  <th  data-options="field:'itemID',align:'center',width:195" ><b>原料编号</b></th>  <th data-options="field:'description',align:'center',width:300" ><b>名称</b></th>  <th data-options="field:'lisPrice',align:'center',width:200" ><b>单价</b></th>  
							 	<th>数量</th>
							 	<th>单位</th>
							 	<th></th>
							 	</tr>
							 </thead>
							 <tbody>
								 <c:forEach items="${itemList}" var="item">								 
								  <tr bgcolor="#FFFF88">
								  <td><b>
								  <a href="${pageContext.request.contextPath}/item.do?path=addItemToCart&itemId=${item.itemid}">
								 
								 ${item.itemid}</a></b></td>
								  <td>
								  ${item.attr1}								     
								  </td>								   
								  <td>${item.listprice}</td>
								  <td>${item.number}</td>
								  <td>${item.unitname}</td> 
								  <td><a href="${pageContext.request.contextPath}/item.do?path=addItemToCart&itemId=${item.itemid}&product"> 
								  <img border="0" src="${pageContext.request.contextPath}/images/button_add_to_cart.gif" /></a></td>
								  </tr>
								</c:forEach>
							  </tbody>
					</table>
              			 
            		</div>
          		</div>
			</div>			
			<div class="col-md-3">
			</div>
		</div>
	</div>
</body>
<%@include file="../common/IncludeBottom.jsp"%>




